package com.wan37.logic.service.impl;

import com.wan37.logic.dao.SceneDao;
import com.wan37.logic.domain.entity.SceneDO;
import com.wan37.logic.service.SceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : luoyong
 * @date : 2020-05-28 11:20
 **/
@Service("sceneService")
public class SceneServiceImpl implements SceneService {

    @Autowired
    private SceneDao sceneDao;

    @Override
    public List<SceneDO> getAllScenes() {
        //获取到所有的地图信息
        List<SceneDO> sceneDOS = sceneDao.getAll();
        if (sceneDOS != null) {
            return sceneDOS;
        } else {
            return null;
        }
    }
}
